import java.net.InetSocketAddress;
import java.util.Set;

/**
 * This class of objects is used to send the address of the
 * existing peers to a newly joined member. Happens in response to
 * a join relay message. Made as a static class to avoid the
 * serialization considers the outer class.
 */
class WelcomeMessage extends MulticastMessageTotal {
    public WelcomeMessage(InetSocketAddress myAddress, Set<InetSocketAddress> _sentTo, int _clock) {
        super(myAddress,_sentTo,_clock);
    }
    public String toString() {
        return "(WelcomeMessage from " + getSender()  + ")";
    }
}